package cn.gson.school.mappers.xitong;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import cn.gson.school.entity.xitong.DeptEntity;
import cn.gson.school.entity.xitong.RoleEntity;
import cn.gson.school.entity.xitong.UserEntity;

@Mapper
public interface UserMapper {
	//查询所有用户信息
	List<UserEntity> userlist(UserEntity user);

	//根据账号查询用户信息
	UserEntity getUserByName(String userAccount);
	//根据用户账号和用户密码来查询是否存在
	UserEntity findUSerByUserAccountAndPass(Map<String, Object> param);

	List<DeptEntity> deptList();

	List<RoleEntity> roleList();
	
	String shenfen(@Param("userId")Long userId);
}
